package com.tdkj.model.base;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.SequenceGenerator;

/**
 * 实体基类
 * 
 * @author 李兴建
 * 
 */
@MappedSuperclass
public class BaseEntity implements Serializable {
	private static final long serialVersionUID = 3987594758926706282L;
	private Long id;
	// 备注
	private String remark;
	//对象状态 一般对象不删除  0:为正常   1：为删除
	private int beanState;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public int getBeanState() {
		return beanState;
	}

	public void setBeanState(int beanState) {
		this.beanState = beanState;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
